﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MynetPageList.ascx.cs" Inherits="UserControl_SysControl_MynetPageList" %>
<div class="leftPageright">
<a class="NetPageLeft">当前<asp:Literal ID="literCurrPage" runat="server" Text="1"></asp:Literal>/<asp:Literal ID="LiterPageAmount" runat="server" Text="1"></asp:Literal>共<asp:Literal ID="LiterCount" runat="server" Text="300"></asp:Literal>记录</a>
<asp:hyperlink id="lnkFirst" runat="server">&lt;&lt;</asp:hyperlink>
<asp:hyperlink id="lnkPrev" runat="server">&lt;</asp:hyperlink>
<asp:Literal ID="LiterLinkList" runat="server" Text="|"></asp:Literal>
<asp:hyperlink id="lnkNext" runat="server" >&gt;</asp:hyperlink>
<asp:hyperlink id="lnkEnd" runat="server">&gt;&gt;</asp:hyperlink>
<a style="padding:0px;"title="请输入页数" ><input id="MyNetPageIndex" class="leftInPutPage" type="text" style="width: 27px" /></a>
<input id="MynetHidMaxPage" type="hidden" />
<input id="MyNetPageBtnGo" type="button" onclick="MynetGoToOnePage()" value="GO" />
<script type="text/javascript">
function InitMyNetCurrPage()
{
document.getElementById("MyNetPageIndex").value=<%=JsCurrentPageNo %>;
document.getElementById("MynetHidMaxPage").value=<%=JsTotalPage %>;

}
function MynetGoToOnePage()
{
 var MyNetCurrentPageno=document.getElementById("MyNetPageIndex").value;
 if(MyNetCurrentPageno.search(/^([1-9][0-9]*[0-9]*)$/)==-1)
   {
   alert("请输入要到达的数字页码");
   return false
   }
   else
   {
     if(parseInt(MyNetCurrentPageno)>parseInt(document.getElementById("MynetHidMaxPage").value))
      {
      MyNetCurrentPageno=document.getElementById("MynetHidMaxPage").value;
      }
   }
   var mynetPageurl=window.location.href;
   if(mynetPageurl.indexOf("Page=")==-1)
   {
    mynetPageurl=mynetPageurl+"?Page="+MyNetCurrentPageno;
   }
   else
   {
   mynetPageurl=mynetPageurl.substr(0,mynetPageurl.indexOf("Page="))+"Page="+MyNetCurrentPageno;
   }
   window.location.href=mynetPageurl;
}
InitMyNetCurrPage();
</script>
</div>
